/*
 * common.cpp
 *
 *  Created on: 2 gru 2013
 *      Author: dawid.wysakowicz
 */

#include "common.hpp"
#include <ostream>

std::ostream& operator<< (std::ostream& ostr, const dna::genotype& gen)
{
	ostr << "(" << gen.first << "," << gen.second << ")";
	return ostr;
}

std::ostream& operator<< (std::ostream& ostr, const dna::marker&  mar)
{
	ostr << "(";
	for (dna::marker::const_iterator iter = mar.begin();  iter != mar.end(); ++iter)	
	{ 	
		ostr<< *iter; 
		if(iter!=--mar.end()) ostr<< ",";  //TODO check this
	}
	ostr << ")";
	return ostr;
}
